<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>TinyButStrong</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="tbs_us_examples_0styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<p align="center" class="title-page">Example of Php variable merge</p>
<br>
<table width="500" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td>&#91;var] fields enable you to display a PHP variable in your  template. You can display a simple variable, or an item of an Array variable, or the property of an Object variable. There are also several parameters for TBS fields which enable you to setup the display of the data item. </td>
  </tr>
</table>
<br>
<table width="500" border="0" align="center" cellpadding="2" cellspacing="0" class="back-special2">
  <tr class="title-section2">
    <td width="240" align="left" valign="top"> Php variable </td>
    <td>Var field</td>
  </tr>
  <tr>
    <td width="226" align="left" valign="top">$amount</td>
    <td><font color="#336600">$ [var.amount]</font></td>
  </tr>
  <tr>
    <td align="left" valign="top">$task['monday']</td>
    <td><font color="#336600">[var.task.monday]</font></td>
  </tr>
  <tr>
    <td align="left" valign="top">$obj-&gt;param</td>
    <td><font color="#336600">[var.obj.param]</font></td>
  </tr>
</table>
<br>
<table width="500" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td><p>Special Var fields return data about the Template Engine.<br>
      </p></td>
  </tr>
</table>
<br>
<table width="500" border="0" align="center" cellpadding="2" cellspacing="0" class="back-special2">
  <tr class="title-section2">
    <td width="240" align="left" valign="top">Information</td>
    <td>Special Var field</td>
  </tr>
  <tr>
    <td align="left" valign="top">TinyButStrong version:</td>
    <td><font color="#336600">[var..version]</font></td>
  </tr>
  <tr>
    <td align="left" valign="top"> Name of the current PHP script:</td>
    <td><font color="#336600">[var..script_name]</font></td>
  </tr>
  <tr>
    <td align="left" valign="top">Name of the loaded template:</td>
    <td><font color="#336600">[var..template_name]</font></td>
  </tr>
  <tr>
    <td align="left" valign="top">Directory of the loaded template:</td>
    <td><font color="#336600">[var..template_path]</font></td>
  </tr>
  <tr>
    <td align="left" valign="top">Creation date of the loaded template:</td>
    <td><font color="#336600">[var..template_date;frm='dd/mm/yyyy hh:nn:ss']</font></td>
  </tr>
  <tr>
    <td align="left" valign="top">Current date-time:</td>
    <td><font color="#336600">[var..now;frm='dd/mm/yyyy hh:nn:ss']</font></td>
  </tr>
</table>
</body>
</html>
